/**
 * 
 */
package edu.gtcfla.km.platform.vo;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

import org.vsg.common.web.json.TreeNode;

/**
 * @author Bill Vison
 *
 */
public class MenuVO extends TreeNode implements Serializable {
	
	private Set<MenuVO> children = new LinkedHashSet<MenuVO>();
	
	private boolean expanded;
	
	private String action;
	
	private short sortNum;

	public String getAction() {
		return action;
	}

	public void setAction(String url) {
		this.action = url;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}

	public Set<MenuVO> getChildren() {
		// TODO Auto-generated method stub
		return children;
	}

	public void setChildren(Set<MenuVO> children) {
		// TODO Auto-generated method stub
		this.children = children;
	}
	
	public void addMenu(MenuVO menu) {
		this.children.add( menu );
	}

	public short getSortNum() {
		return sortNum;
	}

	public void setSortNum(short sortNum) {
		this.sortNum = sortNum;
	}

	
	
}
